GUI Help > Special > setGadgetAlpha

setGadgetAlpha
setGadgetAlpha handle gadget, int alpha

Description:
Sets the opacity of a window gadget. This can range from 0 (transparent) to 255 (opaque / solid).
This effect can add a nice graphical touch when used in moderation, but be aware of the potential performance hit on older PCs.
This command is only supported on Windows 2000 / XP.

Return Value:


Parameters:
gadget Handle of a window gadget
alpha Value between 0 and 255 which sets the opacity of the window.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)